Listing 10 - Page 0: No Title

##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 10\10.1432 - No Title.py
# Description: No Title
##############################################################################

class Account:
    def __init__(self, clients, number, balance=0):
        self.balance = balance
        self.clients = clients
        self.number = number
    def summary(self):
        print(f"Account Number: {self.number} Balance: {self.balance:10.2f}")
    def withdraw(self, value):
        if self.balance >= value:
            self.balance -= value
    def deposit(self, value):
        self.balance += value
Click here to download the file